﻿using System;
using System.Collections.Generic;
using UnityEngine;

namespace AnimPlayable
{
    public enum Anim_Mode
    {
        Loop,//循环
        Once,//播放一次 再播idle
    }

    public interface IAnim
    {
        void updateAgent(GameObject agent);
        void playAnim(string animName, Anim_Mode mode);
        void crossFade(string animName, Anim_Mode mode);

        void playAnim(string[] anims, Anim_Mode mode);

        void tick(float frameTime);

        void stop();

        void resume();

        //void dispose();

        //void forceIdle();

    }
}
